package top.ywlog.permission.common.request;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author: Durian
 * @date: 2020/10/17 22:00
 * @description:
 */
@Data
public class TestParam
{
    @NotBlank(message = "msg不能为空")
    private String msg;

    @NotNull(message = "id不可以为空")
    @Max(value = 10, message = "id不能大于10")
    @Min(value = 0, message = "id至少大于等于0")
    private Integer id;
}
